/*
 * logic.h
 *
 *  Created on: Oct 17, 2010
 *      Author: ra
 */

#ifndef LOGIC_H_
#define LOGIC_H_

#include <avr/io.h>
#include <stdio.h>
#include <util/delay.h>
#include "pwm.h"
#include "adc.h"
#include "eeprom.h"
#include "lcd.h"

#define TRUE  1
#define FALSE 0

typedef char boolean;

void sleep();
int run_servos(boolean record); /* Returns the length of a recording - if any - otherwise 0 */
void play_recording(int length, boolean loop);

#endif /* LOGIC_H_ */
